﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<List<MvcApplication1.Models.Person>>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Index</title>
</head>
<body>
    <div>
    <%foreach( var v in Model ){%>
    First Name: <%= v.firstName %> <%=Html.ActionLink( %><br/>
    Last Name: <%= v.lastName %> <br/>
         <%} %>
    My view <br />
    <% if (ViewData["i"] != null) %>
    <%=  "i: " + ViewData["i"].ToString()  %>
    
    <a href='<%= Url.Action("List", new RouteValueDictionary (new  {category = (string)null, page = 6 } ) ) %>'>Test</a>
    <br/ />
    <a href='<%= Url.Action("List", new RouteValueDictionary (new  {category = (string)"test", page = 6, firstName = "Jay", lastName = "Jaganathan"  } )) %>'>Test</a>

      <a href='<%= Url.Action("List", new RouteValueDictionary (new  { page = 6, firstName = "Jay", lastName = "Jaganathan"  } )) %>'>Test</a>
    <%using (Html.BeginForm("List1", "Product")) { %>
        <input type="text"  id="pid" name="pid" value="100" />
        <%= Html.TextBox("firstName") %>
        <input type="submit" value="Click me"  />
    <% } %>
    </div>
</body>
</html>
